import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(7,GPIO.OUT)
GPIO.setup(8,GPIO.OUT)
# HIGH 高电平 LOW低电平
GPIO.output(7,GPIO.HIGH)
GPIO.output(8,GPIO.LOW)
time.sleep(1000)
GPIO.cleanup()